adTempus API
PreviousUpNext
IScheduler::ValidateLoginCredentials Method

Validates that a user ID and password combination are valid.

C++
HRESULT ValidateLoginCredentials(BSTR userID, BSTR password);
C#
ValidateLoginCredentials(String userID, String password);
Visual Basic
Sub ValidateLoginCredentials(userID As String, password As String)
Parameters 
Description 
[in] BSTR userID 
The login ID, including the domain if necessary (e.g., "domainuserid") 
[in] BSTR password 
The password for the account. 

ValidateLoginCredentials attempts to perform a Windows log in (on the server) using the specified user ID and password. 

The method succeeds if the user ID/password combination is valid, or fails if the login is unsuccessful. In the event of a failure, the thread's error object contains information about the failure (available through the COMException in .NET).

adTempus API Reference version 3.0.0.0, revised 10/30/2008